const path = require('path')

function resolve(pathName) {
  return path.resolve(__dirname, pathName)
}

module.exports = {
  publicPath: './',
  configureWebpack: {
    resolve: {
      alias: {
        '/@/': resolve('src')
      },
      extensions: ['.ts', '.tsx', '.js', '.vue']
    },
  },
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [resolve('./src/assets/css/vars.less')]
    }
  },
}